﻿using JLPT.Models.Objects;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace JLPT.Models.FluentConfiguration
{
    public class QuestionDetailConfiguation : EntityTypeConfiguration<QuestionDetail>
    {
        public QuestionDetailConfiguation()
        {
            Property(t => t.Id)
             .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            Property(d => d.Answer).HasMaxLength(200);
        }
    }
}